<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    
<meta charset="UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>


<meta http-equiv="Cache-Control" content="no-transform" />
<meta http-equiv="Cache-Control" content="no-siteapp" />

<meta name="theme-color" content="#f8f5ec" />
<meta name="msapplication-navbutton-color" content="#f8f5ec">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#f8f5ec">















  <link rel="alternate" href="/atom.xml" title="小明的笔记">




  <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico?v=2.9.0" />



<link rel="canonical" href="https://veris.gitee.io/"/>



  <link rel="stylesheet" type="text/css" href="/lib/fancybox/jquery.fancybox.css" />




  <link rel="stylesheet" type="text/css" href="/lib/nprogress/nprogress.min.css" />



<link rel="stylesheet" type="text/css" href="/css/style.css?v=2.9.0" />



  



  <script id="baidu_push">
(function(){
    var bp = document.createElement('script');
    var curProtocol = window.location.protocol.split(':')[0];
    if (curProtocol === 'https') {
        bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
    }
    else {
        bp.src = 'http://push.zhanzhang.baidu.com/push.js';
    }
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(bp, s);
})();
</script>








<script>
  window.config = {"title":"小明的笔记","subtitle":"天道酬勤","description":null,"author":"Veris","language":"zh-CN","timezone":"Asia/Shanghai","url":"https://veris.gitee.io","root":"/","permalink":":year/:month/:day/:title/","permalink_defaults":null,"source_dir":"source","public_dir":"public","tag_dir":"tags","archive_dir":"archives","category_dir":"categories","code_dir":"downloads/code","i18n_dir":":lang","skip_render":null,"new_post_name":":title.md","default_layout":"post","titlecase":false,"external_link":true,"filename_case":0,"render_drafts":false,"post_asset_folder":true,"relative_link":false,"future":true,"highlight":{"enable":true,"auto_detect":false,"line_number":true,"tab_replace":null},"default_category":"uncategorized","category_map":null,"tag_map":null,"date_format":"YYYY-MM-DD","time_format":"HH:mm:ss","per_page":10,"pagination_dir":"page","theme":"hexo-theme-even","deploy":{"type":"git","repo":"https://gitee.com/Veris/Veris.git","breanch":"master"},"ignore":[],"index_generator":{"per_page":10,"order_by":"-date","path":""},"archive_generator":{"per_page":10,"yearly":true,"monthly":true,"daily":false},"category_generator":{"per_page":10},"feed":{"type":"atom","limit":20,"hub":"","content":true,"content_limit":140,"content_limit_delim":"","path":"atom.xml"},"tag_generator":{"per_page":10},"marked":{"gfm":true,"pedantic":false,"sanitize":false,"tables":true,"breaks":true,"smartLists":true,"smartypants":true,"modifyAnchors":"","autolink":true},"server":{"port":4000,"log":false,"ip":"0.0.0.0","compress":false,"header":true},"since":2015,"favicon":"/favicon.ico","rss":"default","menu":{"Home":"/","Archives":"/archives/","Tags":"/tags/","Categories":"/categories/","About":"/about/"},"color":"Default","toc":true,"fancybox":true,"pjax":true,"copyright":{"enable":true,"license":"<a rel=\"license\" href=\"http://creativecommons.org/licenses/by-nc/4.0/\" target=\"_blank\">知识共享署名-非商业性使用 4.0 国际许可协议</a>"},"reward":{"enable":false,"qrCode":{"wechat":null,"alipay":null}},"social":{"email":"562854011@qq.com","stack-overflow":null,"twitter":null,"facebook":null,"linkedin":null,"google":null,"github":"https://github.com/VerisFung","weibo":"https://weibo.com/onnfzstz69","zhihu":null,"douban":null,"pocket":null,"tumblr":null,"instagram":null},"leancloud":{"app_id":null,"app_key":null},"baidu_analytics":null,"baidu_verification":null,"google_analytics":null,"google_verification":null,"disqus_shortname":null,"changyan":{"appid":null,"appkey":null},"livere_datauid":null,"version":"2.9.0"};
</script>

    <title> 小明的笔记 </title>
  </head>

  <body><div id="mobile-navbar" class="mobile-navbar">
  <div class="mobile-header-logo">
    <a href="/." class="logo">小明的笔记</a>
  </div>
  <div class="mobile-navbar-icon">
    <span></span>
    <span></span>
    <span></span>
  </div>
</div>

<nav id="mobile-menu" class="mobile-menu slideout-menu">
  <ul class="mobile-menu-list">
    
      <a href="/">
        <li class="mobile-menu-item">
          
          
            首页
          
        </li>
      </a>
    
      <a href="/archives/">
        <li class="mobile-menu-item">
          
          
            归档
          
        </li>
      </a>
    
      <a href="/tags/">
        <li class="mobile-menu-item">
          
          
            标签
          
        </li>
      </a>
    
      <a href="/categories/">
        <li class="mobile-menu-item">
          
          
            分类
          
        </li>
      </a>
    
      <a href="/about/">
        <li class="mobile-menu-item">
          
          
            关于
          
        </li>
      </a>
    
  </ul>
</nav>

    <div class="container" id="mobile-panel">
      <header id="header" class="header"><div class="logo-wrapper">
  <a href="/." class="logo">小明的笔记</a>
</div>

<nav class="site-navbar">
  
    <ul id="menu" class="menu">
      
        <li class="menu-item">
          <a class="menu-item-link" href="/">
            
            
              首页
            
          </a>
        </li>
      
        <li class="menu-item">
          <a class="menu-item-link" href="/archives/">
            
            
              归档
            
          </a>
        </li>
      
        <li class="menu-item">
          <a class="menu-item-link" href="/tags/">
            
            
              标签
            
          </a>
        </li>
      
        <li class="menu-item">
          <a class="menu-item-link" href="/categories/">
            
            
              分类
            
          </a>
        </li>
      
        <li class="menu-item">
          <a class="menu-item-link" href="/about/">
            
            
              关于
            
          </a>
        </li>
      
    </ul>
  
</nav>

      </header>

      <main id="main" class="main">
        <div class="content-wrapper">
          <div id="content" class="content">
            
  <section id="posts" class="posts">
    
      
  <article class="post">
    <header class="post-header">
      <h1 class="post-title">
        
          <a class="post-link" href="/2018/08/27/常用的支付系统/">常用的支付系统</a>
        
      </h1>

      <div class="post-meta">
        <span class="post-time">
          2018-08-27
        </span>
        
          <div class="post-category">
            
              <a href="/categories/支付系统设计/">支付系统设计</a>
            
          </div>
        
        
      </div>
    </header>

    
    


    <div class="post-content">
      
        
        

        
          <h2 id="常用的网站支付方式："><a href="#常用的网站支付方式：" class="headerlink" title="常用的网站支付方式："></a>常用的网站支付方式：</h2><ol>
<li>APP支付</li>
<li>扫码支付（被扫）<ul>
<li>扫码支付（微信）</li>
<li>当面付（支付宝）</li>
<li>收款码支付（微信、支付宝）</li>
</ul>
</li>
<li>刷卡支付（主扫）<ul>
<li>付款码（微信）</li>
<li>付款码（支付宝）</li>
</ul>
</li>
<li>H5支付（唤起APP支付，如未安装APP无法唤起转网页收银台）<ul>
<li>H5支付（微信）</li>
<li>手机网站支付（支付宝）</li>
</ul>
</li>
<li>站外支付（跳转）<ul>
<li>网银支付</li>
<li>公众号支付（微信）</li>
<li>电脑网站支付（支付宝）</li>
<li>第三方网站平台支付</li>
</ul>
</li>
<li>代付</li>
</ol>
<h2 id="结算时间"><a href="#结算时间" class="headerlink" title="结算时间"></a>结算时间</h2><ul>
<li>T+1，第二个工作日到账</li>
<li>T+0，当天工作日到账</li>
<li>D+1，第二天到账(包含休息日，节假日)</li>
<li>D+0，全年当天到账(包含休日，节假日)</li>
</ul>

        
      
    </div>

    

    

  </article>

    
      
  <article class="post">
    <header class="post-header">
      <h1 class="post-title">
        
          <a class="post-link" href="/2018/08/27/正则表达式笔记/">正则表达式笔记</a>
        
      </h1>

      <div class="post-meta">
        <span class="post-time">
          2018-08-27
        </span>
        
          <div class="post-category">
            
              <a href="/categories/正则表达式/">正则表达式</a>
            
          </div>
        
        
      </div>
    </header>

    
    


    <div class="post-content">
      
        
        

        
          <h2 id="正则表达式笔记"><a href="#正则表达式笔记" class="headerlink" title="正则表达式笔记"></a>正则表达式笔记</h2><table>
<thead>
<tr>
<th>元字符</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>^</td>
<td>从字符串开头匹配</td>
</tr>
<tr>
<td>$</td>
<td>匹配到字符串结尾</td>
</tr>
<tr>
<td>\b</td>
<td>单词分界符</td>
</tr>
<tr>
<td>.</td>
<td>除换行符以外的任何字符</td>
</tr>
<tr>
<td>*</td>
<td>前面内容可以连续重复使用任意次（可能是0次）</td>
</tr>
<tr>
<td>+</td>
<td>前面内容可以连续重复至少1次</td>
</tr>
<tr>
<td>?</td>
<td>前面内容可以连续重复0次或1次</td>
</tr>
<tr>
<td>\d</td>
<td>一位数字</td>
</tr>
<tr>
<td>\s</td>
<td>任意空白符，包括空格、制表符、换行符、中文空格</td>
</tr>
<tr>
<td>\w</td>
<td>字母、数字、下划线或汉字等</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>常用反义</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>\W</td>
<td>匹配任意不是字母，数字，下划线，汉字的字符</td>
</tr>
<tr>
<td>\S</td>
<td>匹配任意不是空白符的字符</td>
</tr>
<tr>
<td>\D</td>
<td>匹配任意非数字的字符</td>
</tr>
<tr>
<td>\B</td>
<td>匹配不是单词开头或结束的位置</td>
</tr>
<tr>
<td>[^x]</td>
<td>匹配除了x以外的任意字符</td>
</tr>
<tr>
<td>[^aeiou]</td>
<td>匹配除了aeiou这几个字母以外的任意字符</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>常用分组语法分类</th>
<th>代码/语法</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>捕获</td>
<td>(exp)</td>
<td>匹配exp,并捕获文本到自动命名的组里</td>
</tr>
<tr>
<td>(?<name>exp)</name></td>
<td>匹配exp,并捕获文本到名称为name的组里，也可以写成(?’name’exp)</td>
<td></td>
</tr>
<tr>
<td>(?:exp)</td>
<td>匹配exp,不捕获匹配的文本，也不给此分组分配组号</td>
<td></td>
</tr>
<tr>
<td>零宽断言</td>
<td>(?=exp)</td>
<td>匹配exp前面的位置</td>
</tr>
<tr>
<td>(?&lt;=exp)</td>
<td>匹配exp后面的位置</td>
<td></td>
</tr>
<tr>
<td>(?!exp)</td>
<td>匹配后面跟的不是exp的位置</td>
<td></td>
</tr>
<tr>
<td>(?&lt;!exp)</td>
<td>匹配前面不是exp的位置</td>
<td></td>
</tr>
<tr>
<td>注释</td>
<td>(?#comment)</td>
<td>这种类型的分组不对正则表达式的处理产生任何影响，用于提供注释让人阅读</td>
</tr>
</tbody>
</table>
<h5 id="转义字符：-如"><a href="#转义字符：-如" class="headerlink" title="转义字符：\ 如. * \"></a>转义字符：\ 如. * \</h5><table>
<thead>
<tr>
<th>限定符</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>*</td>
<td>重复零次或更多次</td>
</tr>
<tr>
<td>+</td>
<td>重复一次或更多次</td>
</tr>
<tr>
<td>?</td>
<td>重复零次或一次</td>
</tr>
<tr>
<td>{n}</td>
<td>重复n次</td>
</tr>
<tr>
<td>{n,}</td>
<td>重复n次或更多次</td>
</tr>
<tr>
<td>{n,m}</td>
<td>重复n到m次</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>懒惰限定符</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>*?</td>
<td>重复任意次，但尽可能少重复</td>
</tr>
<tr>
<td>+?</td>
<td>重复1次或更多次，但尽可能少重复</td>
</tr>
<tr>
<td>??</td>
<td>重复0次或1次，但尽可能少重复</td>
</tr>
<tr>
<td>{n,m}?</td>
<td>重复n到m次，但尽可能少重复</td>
</tr>
<tr>
<td>{n,}?</td>
<td>重复n次以上，但尽可能少重复</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>尚未详细讨论的语法</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>\a</td>
<td>报警字符(打印它的效果是电脑嘀一声)</td>
</tr>
<tr>
<td>\b</td>
<td>通常是单词分界位置，但如果在字符类里使用代表退格</td>
</tr>
<tr>
<td>\t</td>
<td>制表符，Tab</td>
</tr>
<tr>
<td>\r</td>
<td>回车</td>
</tr>
<tr>
<td>\v</td>
<td>竖向制表符</td>
</tr>
<tr>
<td>\f</td>
<td>换页符</td>
</tr>
<tr>
<td>\n</td>
<td>换行符</td>
</tr>
<tr>
<td>\e</td>
<td>Escape</td>
</tr>
<tr>
<td>\0nn</td>
<td>ASCII代码中八进制代码为nn的字符</td>
</tr>
<tr>
<td>\xnn</td>
<td>ASCII代码中十六进制代码为nn的字符</td>
</tr>
<tr>
<td>\unnnn</td>
<td>Unicode代码中十六进制代码为nnnn的字符</td>
</tr>
<tr>
<td>\cN</td>
<td>ASCII控制字符。比如\cC代表Ctrl+C</td>
</tr>
<tr>
<td>\A</td>
<td>字符串开头(类似^，但不受处理多行选项的影响)</td>
</tr>
<tr>
<td>\Z</td>
<td>字符串结尾或行尾(不受处理多行选项的影响)</td>
</tr>
<tr>
<td>\z</td>
<td>字符串结尾(类似$，但不受处理多行选项的影响)</td>
</tr>
<tr>
<td>\G</td>
<td>当前搜索的开头</td>
</tr>
<tr>
<td>\p{name}</td>
<td>Unicode中命名为name的字符类，例如\p{IsGreek}</td>
</tr>
<tr>
<td>(?&gt;exp)</td>
<td>贪婪子表达式</td>
</tr>
<tr>
<td>(?<x>-<y>exp)</y></x></td>
<td>平衡组</td>
</tr>
<tr>
<td>(?im-nsx:exp)</td>
<td>在子表达式exp中改变处理选项</td>
</tr>
<tr>
<td>(?im-nsx)</td>
<td>为表达式后面的部分改变处理选项</td>
</tr>
<tr>
<td>(?(exp)yes</td>
<td>no)</td>
</tr>
<tr>
<td>(?(exp)yes)</td>
<td>同上，只是使用空表达式作为no</td>
</tr>
<tr>
<td>(?(name)yes</td>
<td>no)</td>
</tr>
<tr>
<td>(?(name)yes)</td>
<td>同上，只是使用空表达式作为no</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>匹配实例</th>
<th>表达式</th>
</tr>
</thead>
<tbody>
<tr>
<td>IP地址</td>
<td>/((2[0-4]\d\</td>
<td>25[0-5]\</td>
<td>[01]?\d?\d)\.){3}(2[0-4]\d\</td>
<td>25[0-5]\</td>
<td>[01]?\d?\d)/</td>
</tr>
<tr>
<td>邮箱地址</td>
<td>/(\w)+(\.\w+)*@(\w)+((\.\w+)+)/</td>
</tr>
</tbody>
</table>

        
      
    </div>

    

    

  </article>

    
      
  <article class="post">
    <header class="post-header">
      <h1 class="post-title">
        
          <a class="post-link" href="/2018/08/27/Javascript名词解释/">Javascript名词解释</a>
        
      </h1>

      <div class="post-meta">
        <span class="post-time">
          2018-08-27
        </span>
        
          <div class="post-category">
            
              <a href="/categories/Javascript/">Javascript</a>
            
          </div>
        
        
      </div>
    </header>

    
    


    <div class="post-content">
      
        
        

        
          <table>
<thead>
<tr>
<th>名词</th>
<th>释义</th>
</tr>
</thead>
<tbody>
<tr>
<td>HTML</td>
<td>超文本标记语言</td>
</tr>
<tr>
<td>CSS</td>
<td>层叠样式表</td>
</tr>
<tr>
<td>W3C</td>
<td>万维网联盟</td>
</tr>
<tr>
<td>DOM</td>
<td>文档对象模型<br>是一套对文档的内容进行抽象和概念化的方法。</td>
</tr>
<tr>
<td>BOM</td>
<td>浏览器对象模型</td>
</tr>
<tr>
<td>ECMA</td>
<td>欧洲计算机制造商协会</td>
</tr>
<tr>
<td>DHTML</td>
<td>Dynamic HTML 动态HTML</td>
</tr>
<tr>
<td>WaSP</td>
<td>Web标准计划小组<br>浏览器制造商的自私姿态遭到人们的激烈反对，标准化小组应运而生。</td>
</tr>
<tr>
<td>WebKit</td>
<td>Safari、Chrome采用的一个开源Web浏览器引擎</td>
</tr>
<tr>
<td>Gecko</td>
<td>Firefox核心</td>
</tr>
<tr>
<td>Trident</td>
<td>IE核心</td>
</tr>
<tr>
<td>AJAX</td>
<td>异步数据传输技术</td>
</tr>
</tbody>
</table>

        
      
    </div>

    

    

  </article>

    
      
  <article class="post">
    <header class="post-header">
      <h1 class="post-title">
        
          <a class="post-link" href="/2018/08/27/Javascript学习笔记/">Javascript学习笔记</a>
        
      </h1>

      <div class="post-meta">
        <span class="post-time">
          2018-08-27
        </span>
        
          <div class="post-category">
            
              <a href="/categories/Javascript/">Javascript</a>
            
          </div>
        
        
      </div>
    </header>

    
    


    <div class="post-content">
      
        
        

        
          <p>study on 2017/12/08</p>
<h4 id="简单数据"><a href="#简单数据" class="headerlink" title="简单数据"></a>简单数据</h4><pre><code>1. undefined
2. null
3. boolean
4. number
5. string
</code></pre><h4 id="复杂数据"><a href="#复杂数据" class="headerlink" title="复杂数据"></a>复杂数据</h4><pre><code>1. object
</code></pre><h4 id="算术运算符"><a href="#算术运算符" class="headerlink" title="算术运算符"></a>算术运算符</h4><pre><code>+  加号
-  减号
/  除号
*  乘号
%  求余
++ 累加
-- 递减
</code></pre><h4 id="比较运算符"><a href="#比较运算符" class="headerlink" title="比较运算符"></a>比较运算符</h4><pre><code>==
===
!=
&gt;
&lt;
&gt;=
&lt;=
</code></pre><h4 id="逻辑运算符"><a href="#逻辑运算符" class="headerlink" title="逻辑运算符"></a>逻辑运算符</h4><pre><code>&amp;&amp;
||
!
</code></pre><h4 id="条件运算符"><a href="#条件运算符" class="headerlink" title="条件运算符"></a>条件运算符</h4><pre><code>condition ? expr1 : expr2;
</code></pre>
        
      
    </div>

    

    

  </article>

    
      
  <article class="post">
    <header class="post-header">
      <h1 class="post-title">
        
          <a class="post-link" href="/2017/08/02/【cURL】实例一、上传文件/">【cURL】实例一、上传文件</a>
        
      </h1>

      <div class="post-meta">
        <span class="post-time">
          2017-08-02
        </span>
        
          <div class="post-category">
            
              <a href="/categories/PHP/">PHP</a>
            
          </div>
        
        
      </div>
    </header>

    
    


    <div class="post-content">
      
        
        
          
        

        
          <figure class="highlight php"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div></pre></td><td class="code"><pre><div class="line"><span class="meta">&lt;?php</span></div><div class="line">    <span class="comment">/* http://localhost/upload.php:</span></div><div class="line"><span class="comment">    print_r($_POST);</span></div><div class="line"><span class="comment">    print_r($_FILES);</span></div><div class="line"><span class="comment">    */</span></div><div class="line"></div><div class="line">    $ch = curl_init();</div><div class="line"></div><div class="line">    $data = <span class="keyword">array</span>(<span class="string">'name'</span> =&gt; <span class="string">'Foo'</span>, <span class="string">'file'</span> =&gt; <span class="string">'@/home/user/test.png'</span>);</div><div class="line"></div><div class="line">    curl_setopt($ch, CURLOPT_URL, <span class="string">'http://localhost/upload.php'</span>);</div><div class="line">    curl_setopt($ch, CURLOPT_POST, <span class="number">1</span>);</div><div class="line">    curl_setopt($ch, CURLOPT_POSTFIELDS, $data);</div><div class="line">    curl_exec($ch);</div><div class="line"><span class="meta">?&gt;</span></div></pre></td></tr></table></figure>
          <div class="read-more">
            <a href="/2017/08/02/【cURL】实例一、上传文件/" class="read-more-link">阅读更多</a>
          </div>
        
      
    </div>

    

    

  </article>

    
      
  <article class="post">
    <header class="post-header">
      <h1 class="post-title">
        
          <a class="post-link" href="/2017/08/02/【cURL】CURLOPT-RETURNTRANSFER选项使用实验详解/">【cURL】CURLOPT_RETURNTRANSFER选项使用实验详解</a>
        
      </h1>

      <div class="post-meta">
        <span class="post-time">
          2017-08-02
        </span>
        
          <div class="post-category">
            
              <a href="/categories/PHP/">PHP</a>
            
          </div>
        
        
      </div>
    </header>

    
    


    <div class="post-content">
      
        
        
          
        

        
          <p><code>curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);</code></p>
<p>参数值：</p>
<ul>
<li>false： 关闭返回，直接输出内容</li>
<li>true： 开启返回，不直接输出内容</li>
</ul>
<blockquote>
<p>开启后使用<code>curl_exec</code>函数或<code>curl_multi_getcontent</code>函数返回网站内容，两个函数的返回区别如下：</p>
</blockquote>
<ul>
<li><p><strong>使用</strong><code>curl_exec</code><strong>函数</strong></p>
  <figure class="highlight php"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div></pre></td><td class="code"><pre><div class="line"><span class="meta">&lt;?php</span></div><div class="line">    $ch=curl_init();</div><div class="line">    curl_setopt($ch,CURLOPT_URL,<span class="string">'http://www.mostclan.com/'</span>);</div><div class="line">    curl_setopt($ch,CURLOPT_HEADER,<span class="number">0</span>);</div><div class="line">    $a=curl_exec($ch);</div><div class="line">    curl_close($ch);</div><div class="line">    var_dump($a);</div><div class="line"><span class="meta">?&gt;</span></div></pre></td></tr></table></figure>
<p>  执行结果：</p>
<ul>
<li>直接输出了网页内容</li>
<li>curl_exec函数返回<code>boolean true</code></li></ul></li></ul>
          <div class="read-more">
            <a href="/2017/08/02/【cURL】CURLOPT-RETURNTRANSFER选项使用实验详解/" class="read-more-link">阅读更多</a>
          </div>
        
      
    </div>

    

    

  </article>

    
      
  <article class="post">
    <header class="post-header">
      <h1 class="post-title">
        
          <a class="post-link" href="/2017/08/02/【cURL】获取一个网页内容/">【cURL】cURL获取一个网页内容</a>
        
      </h1>

      <div class="post-meta">
        <span class="post-time">
          2017-08-02
        </span>
        
          <div class="post-category">
            
              <a href="/categories/PHP/">PHP</a>
            
          </div>
        
        
      </div>
    </header>

    
    


    <div class="post-content">
      
        
        

        
          <figure class="highlight php"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div></pre></td><td class="code"><pre><div class="line">    <span class="meta">&lt;?php</span></div><div class="line">    <span class="comment">// 创建一个cURL资源</span></div><div class="line">    $ch = curl_init();</div><div class="line">    </div><div class="line">    <span class="comment">// 设置URL和相应的选项</span></div><div class="line">    curl_setopt($ch, CURLOPT_URL, <span class="string">"http://www.mostclan.com/"</span>);</div><div class="line">    curl_setopt($ch, CURLOPT_HEADER, <span class="number">0</span>);</div><div class="line">    </div><div class="line">    <span class="comment">// 抓取URL并把它传递给浏览器</span></div><div class="line">    curl_exec($ch);</div><div class="line">    </div><div class="line">    <span class="comment">// 关闭cURL资源，并且释放系统资源</span></div><div class="line">    curl_close($ch);</div><div class="line"><span class="meta">?&gt;</span></div></pre></td></tr></table></figure>
<blockquote>
<p>如果<code>CURLOPT_RETURNTRANSFER</code>选项被设置，函数执行成功时会返回执行的结果，失败时返回<code>FALSE</code>。</p>
</blockquote>

        
      
    </div>

    

    

  </article>

    
      
  <article class="post">
    <header class="post-header">
      <h1 class="post-title">
        
          <a class="post-link" href="/2017/08/02/搭建LNMP环境/">搭建LNMP环境</a>
        
      </h1>

      <div class="post-meta">
        <span class="post-time">
          2017-08-02
        </span>
        
          <div class="post-category">
            
              <a href="/categories/Linux/">Linux</a>
            
          </div>
        
        
      </div>
    </header>

    
    


    <div class="post-content">
      
        
        
          
        

        
          <blockquote>
<p>任务时间：5min ~ 10min</p>
</blockquote>
<h3 id="安装-Nginx"><a href="#安装-Nginx" class="headerlink" title="安装 Nginx"></a>安装 Nginx</h3><p>使用<code>yum</code>安装 Nginx：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">yum install nginx -y</div></pre></td></tr></table></figure>
<p>修改<em>/etc/nginx/conf.d/default.conf</em>，去除对 IPv6 地址的监听，可参考下面的代码示例：</p>
<h5 id="示例代码：-etc-nginx-conf-d-default-conf"><a href="#示例代码：-etc-nginx-conf-d-default-conf" class="headerlink" title="示例代码：/etc/nginx/conf.d/default.conf"></a>示例代码：/etc/nginx/conf.d/default.conf</h5><figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div><div class="line">2</div><div class="line">3</div><div class="line">4</div><div class="line">5</div><div class="line">6</div><div class="line">7</div><div class="line">8</div><div class="line">9</div><div class="line">10</div><div class="line">11</div><div class="line">12</div><div class="line">13</div><div class="line">14</div><div class="line">15</div><div class="line">16</div><div class="line">17</div><div class="line">18</div><div class="line">19</div><div class="line">20</div><div class="line">21</div></pre></td><td class="code"><pre><div class="line">server &#123;</div><div class="line">    listen       80 default_server;</div><div class="line">    # listen       [::]:80 default_server;</div><div class="line">    server_name  _;</div><div class="line">    root         /usr/share/nginx/html;</div><div class="line"></div><div class="line">    # Load configuration files for the default server block.</div><div class="line">    include /etc/nginx/default.d/*.conf;</div><div class="line"></div><div class="line">    location / &#123;</div><div class="line">    &#125;</div><div class="line"></div><div class="line">    error_page 404 /404.html;</div><div class="line">        location = /40x.html &#123;</div><div class="line">    &#125;</div><div class="line"></div><div class="line">    error_page 500 502 503 504 /50x.html;</div><div class="line">        location = /50x.html &#123;</div><div class="line">    &#125;</div><div class="line"></div><div class="line">&#125;</div></pre></td></tr></table></figure>
          <div class="read-more">
            <a href="/2017/08/02/搭建LNMP环境/" class="read-more-link">阅读更多</a>
          </div>
        
      
    </div>

    

    

  </article>

    
      
  <article class="post">
    <header class="post-header">
      <h1 class="post-title">
        
          <a class="post-link" href="/2017/08/02/搭建LAMP环境/">搭建LAMP环境</a>
        
      </h1>

      <div class="post-meta">
        <span class="post-time">
          2017-08-02
        </span>
        
          <div class="post-category">
            
              <a href="/categories/Linux/">Linux</a>
            
          </div>
        
        
      </div>
    </header>

    
    


    <div class="post-content">
      
        
        
          
        

        
          <p>任务时间：5min ~ 10min</p>
<h3 id="安装-MySQL"><a href="#安装-MySQL" class="headerlink" title="安装 MySQL"></a>安装 MySQL</h3><p>使用<code>yum</code>安装 MySQL：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">yum install mysql-server -y</div></pre></td></tr></table></figure>
<p>安装完成后，启动 MySQL 服务：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">service mysqld restart</div></pre></td></tr></table></figure>
<p>设置 MySQL 账户 root 密码：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><div class="line">1</div></pre></td><td class="code"><pre><div class="line">/usr/bin/mysqladmin -u root password &apos;Password&apos;</div></pre></td></tr></table></figure>
          <div class="read-more">
            <a href="/2017/08/02/搭建LAMP环境/" class="read-more-link">阅读更多</a>
          </div>
        
      
    </div>

    

    

  </article>

    
      
  <article class="post">
    <header class="post-header">
      <h1 class="post-title">
        
          <a class="post-link" href="/2017/08/02/CentOS-6-3安装/">CentOS 6.3安装</a>
        
      </h1>

      <div class="post-meta">
        <span class="post-time">
          2017-08-02
        </span>
        
          <div class="post-category">
            
              <a href="/categories/Linux/">Linux</a>
            
          </div>
        
        
      </div>
    </header>

    
    


    <div class="post-content">
      
        
        
          
        

        
          <p>附：<a href="http://www.centoscn.com/CentosSoft/iso/2013/0720/370.html" target="_blank" rel="external">CentOS 6.3下载地址</a></p>
<blockquote>
<p>安装注意事项：</p>
</blockquote>
<ol>
<li>CentOS 6.3系统镜像有两个，安装系统只用到第一个镜像即<strong>CentOS-6.3-i386-bin-DVD1.iso（32位）</strong>或者<strong>CentOS-6.3-x86_64-bin-DVD1.iso（64位）</strong>,第二个镜像是系统自带软件安装包</li>
<li>安装CentOS 6.3系统的计算机<strong>内存必须等于或者大于628M（最小内存628M）</strong>，才能启用图形安装模式</li>
<li>CentOS 6.3文本安装模式不支持自定义分区，建议使用图形安装模式安装</li>
<li>CentOS 6.3的系统安装方式分为：<strong>图形安装模式</strong>和<strong>文本安装模式</strong></li>
<li>CentOS 6.3的系统运行方式分为：<strong>带图形界面、可以用鼠标操作的图形化方式</strong>和<strong>不带图形界面、直接用命令行操作的文本方式</strong>（具体的系统运行方式，可以在系统安装的过程中自定义选择）</li>
</ol>
<blockquote>
<p>用系统安装盘成功引导之后，出现如下界面：</p>
</blockquote>
<p><img src="/2017/08/02/CentOS-6-3安装/QQ截图20170307223818.png" alt=""></p>
<ul>
<li>Install or upgrade an existing system [ 安装或升级现有的系统 ]</li>
<li>install system with basic video driver [ 安装过程中采用 基本的显卡驱动 ]</li>
<li>Rescue installed system [ 进入系统修复模式 ]</li>
<li>Boot from local drive [ 退出安装从硬盘启动 ]</li>
<li>Memory test [ 内存检测 ]</li></ul>
          <div class="read-more">
            <a href="/2017/08/02/CentOS-6-3安装/" class="read-more-link">阅读更多</a>
          </div>
        
      
    </div>

    

    

  </article>

    
  </section>

  
  <nav class="pagination">
    
    
      <a class="next" href="/page/2/">
        <span class="next-text">下一页</span>
        <i class="iconfont icon-right"></i>
      </a>
    
  </nav>


          </div>
          

        </div>
      </main>

      <footer id="footer" class="footer">

  <div class="social-links">
    
      
        
          <a href="mailto:562854011@qq.com" class="iconfont icon-email" title="email"></a>
        
      
    
      
    
      
    
      
    
      
    
      
    
      
        
          <a href="https://github.com/VerisFung" class="iconfont icon-github" title="github"></a>
        
      
    
      
        
          <a href="https://weibo.com/onnfzstz69" class="iconfont icon-weibo" title="weibo"></a>
        
      
    
      
    
      
    
      
    
      
    
      
    
    
    
      <a href="/atom.xml" class="iconfont icon-rss" title="rss"></a>
    
  </div>


<div class="copyright">
  <span class="power-by">
    由 <a class="hexo-link" href="https://hexo.io/">Hexo</a> 强力驱动
  </span>
  <span class="division">|</span>
  <span class="theme-info">
    主题 - 
    <a class="theme-link" href="https://github.com/ahonn/hexo-theme-even">Even</a>
  </span>

  <span class="copyright-year">
    
    &copy; 
     
      2015 - 
    
    2018

    <span class="heart">
      <i class="iconfont icon-heart"></i>
    </span>
    <span class="author">Veris</span>
  </span>
</div>

      </footer>

      <div class="back-to-top" id="back-to-top">
        <i class="iconfont icon-up"></i>
      </div>
    </div>

    


    
  



  
  





  
    <script type="text/javascript" src="/lib/jquery/jquery.min.js"></script>
  

  
    <script type="text/javascript" src="/lib/slideout/slideout.js"></script>
  

  
    <script type="text/javascript" src="/lib/fancybox/jquery.fancybox.pack.js"></script>
  

  
    <script type="text/javascript" src="/lib/pjax/jquery.pjax.min.js"></script>
  

  
    <script type="text/javascript" src="/lib/nprogress/nprogress.min.js"></script>
  


    <script type="text/javascript" src="/js/src/even.js?v=2.9.0"></script>

  </body>
</html>
